package top.wilsonlv.jaguar.cloud.upms.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.wilsonlv.jaguar.basecrud.BaseMapper;
import top.wilsonlv.jaguar.cloud.upms.controller.vo.ResourceServerVO;
import top.wilsonlv.jaguar.cloud.upms.entity.ResourceServer;

import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author lvws
 * @since 2021-12-02
 */
@Mapper
public interface ResourceServerMapper extends BaseMapper<ResourceServer> {

    /**
     * 获取用户资源服务
     *
     * @param userId 用户ID
     * @return 用户资源服务
     */
    List<ResourceServerVO> getUserResourceServers(@Param("userId") Long userId);

}